package com.my;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Hello world!
 *
 */
@SpringBootApplication
@RestController
@EnableDiscoveryClient
public class App {
    @RequestMapping("hello")
    public String test(String name){
        return "hello"+name;
    }

    public static void main( String[] args ) {
        SpringApplication.run( App.class,args );
    }
}
